package com.zcsy.manage.owner.service.base.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zcsy.manage.owner.service.base.IOCommonVerifyCodeService;
import com.zcsy.manage.model.base.CommonVerifyCode;
import com.zcsy.manage.persistence.base.CommonVerifyCodeDao;

/**
 * @Title: CICommonVerifyCodeServiceImpl.java
 * @Package： com.zcsy.manage.owner.service.base.impl 
 * @Description:验证码接口实现类 
 * @author liuziyu liuziyuwri@foxmail.com
 * @Copyright: 2016 武汉恒数利通软件有限公司 All rights reserved.
 * @date 2016年6月23日
 * @version 1.0
 * @see JDK1.7.0_75
 * @since
 */
@Service
public class OCommonVerifyCodeServiceImpl implements IOCommonVerifyCodeService{
	
    @Autowired
	private CommonVerifyCodeDao commonVerifyCode;
	
	@Override
	public int insert(CommonVerifyCode verifyCode) {
		return commonVerifyCode.insert(verifyCode);
	}

	@Override
	public CommonVerifyCode selectCodeByAccount(String userAccount) {
		return commonVerifyCode.selectCodeByAccount(userAccount);
	}

	@Override
	public int deleteById(String id) {
		return commonVerifyCode.deleteById(id);
	}
	
	@Override
	public CommonVerifyCode selectCodeByPhone(String phone) {
		return commonVerifyCode.selectCodeByPhone(phone);
	}

	@Override
	public int update(CommonVerifyCode verifyCode) {
		return commonVerifyCode.update(verifyCode);
	}

}
